﻿using System;

namespace BorgExt
{
    [AttributeUsage(AttributeTargets.Interface, AllowMultiple = true, Inherited = false)]
    public class ParamDefinitionAttribute : Attribute
    {
        internal string Name { get; set; }
        public Type Type { get; internal set; }
        public object DefaultValue { get; set; }

        public ParamDefinitionAttribute(string name, Type type)
            : this(name, type, ParamDefinition.NoDefault)
        { }

        public ParamDefinitionAttribute(string name, Type type, object defaultValue)
        {
            Name = name;
            Type = type;
            DefaultValue = defaultValue;
        }
    }
}

